/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-14
 * Time: 21:17
 */
public class Animal{//父类/基类/超类
    String name = "xia";
    int age;
    String gender;

    public void eat(){
        System.out.println(name + " 正在吃饭!");
    }

    public void sleep(){
        System.out.println(name + " 正在睡觉!");
    }

    public String getName() {
        return name;
    }

    public void setName(Animal this,String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

}
